//
//  CustomerInfoDetail.m
//  Trading365
//
//  Created by Jason on 12-3-22.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "CustomerContactDetail.h"
#import "Type.h"

@implementation CustomerContactDetail
@synthesize table;
@synthesize contact_name;


- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title=contact_name;
    self.table.backgroundColor=BACKGROUND_COLOR;
    
    NSArray *temp_array=[[NSArray alloc]initWithObjects: @"姓名",
                         @"传真",                         @"电话",
                         @"移动电话",                         @"MSN",
                         @"生日",                         @"邮件",
                         @"地址",                         @"快件",
                         @"Skype",                         @"备注",nil];
    self.InfoListTitle=temp_array;
    [temp_array release];
    
     NSArray *temp_array2=[[NSArray alloc]initWithObjects:@"contact_name",
                           @"fax",@"telphone",
                           @"mobile",@"msn",
                           @"birthday",@"mail",
                           @"address",@"delivery_number",
                           @"skype",@"remarks", nil];
    self.InfoListName=temp_array2;
    [temp_array2 release];
    
}

- (void)viewDidUnload
{
    [self setTable:nil];
    
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
    self.contact_name = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (void)dealloc {
    [contact_name release];

    [table release];
    [super dealloc];
}

#pragma mark - Table view data source
//

#pragma mark - Table view delegate
//

@end
